package cn.ainit.bj.comparsion;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import cn.ainit.bj.comparsion.entity.BjComparison;
@Service   
public class ComparsionServiceImpl implements ComparsionService {
	//这个一定要写
	private ComparsionDao comparsionDao;
	@Resource  //这个resource 一定要写在set方法 
	public void setComparsionDao(ComparsionDao comparsionDao) {
		this.comparsionDao = comparsionDao;
	}
	
	@Override
	public boolean saveComp(BjComparison bjComparison) throws Exception {
		return this.comparsionDao.saveComp(bjComparison);
	}

	@Override
	public boolean updCompSave(BjComparison bjComparison) throws Exception {
		return this.comparsionDao.updCompSave(bjComparison);
	}
	@Override
	public boolean findComp(String codeId) throws Exception {
		return this.comparsionDao.findComp(codeId);
	}
}
